import java.util.Arrays;
import java.util.Scanner;

public class Test02 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        // code here
        char [] a =input.next().toCharArray();
        if(a.length%2!=0){
            System.out.println("123456");
        }else{
            char [] b =new char[a.length/2];
            char [] c = new char[a.length/2];
            for(int i=0; i<a.length;i++){
                if(i<a.length/2){
                    b[i]=a[i];
                }else{
                    c[a.length-i-1]=a[i];
                }
            }
            String res01= Arrays.toString(b);
            String res02=Arrays.toString(c);
            System.out.println(res01+res02);
        }
    }
}
